import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Long',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "Long" */ '../views/Long.vue')
  },
  {
    path: '/Long',
    name: 'Long',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "Long" */ '../views/Long.vue')
  },
  {
    path: '/index',
    name: 'index',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "index" */ '../views/index.vue'),
    children: [
      {
        path: '/main',
        name: 'main',
        component: () => import(/* webpackChunkName: "index" */ '../views/main.vue')
      },
      {
        path: '/Edit/:UsersId',
        name: 'Edit',
        component: () => import(/* webpackChunkName: "index" */ '../views/Edit.vue')
      }

    ]
  },
  {
    path: '/AddZhuCe',
    name: 'AddZhuCe',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AddZhuCe.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
